package com.sinothk.framework.operateBus;


// https://github.com/greenrobot/EventBus

public class OperateBus {
    /**
     * 注册
     *
     * @param subscriber
     */
    public static void register(Object subscriber) {
        EventBus.getDefault().register(subscriber);
    }

    /**
     * 取消注册
     *
     * @param subscriber
     */
    public static void unregister(Object subscriber) {
        EventBus.getDefault().unregister(subscriber);
    }

    public static void send(Object event) {
        EventBus.getDefault().post(event);
    }


}
